#pragma once
#include"public_struct.h"
int titleToNumber(string s) {
	int result = 0;
	for (int i = 0; i < s.size(); i++) {
		result = result * 26 + (s[i] - 'A') + 1;
	}
	return result;
}